package com.ruoyi.interfaced.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 栏目对象 shop_commodity
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
public class ShopCommodityInter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品 **/
    private List<ShopGoodsInter> shopGoodsInters;

    /** 栏目关联的商品 **/
    private Long goodsShopName;

    public Long getGoodsShopName() {
        return goodsShopName;
    }

    public void setGoodsShopName(Long goodsShopName) {
        this.goodsShopName = goodsShopName;
    }

    public List<ShopGoodsInter> getShopGoodsInters() {
        return shopGoodsInters;
    }

    public void setShopGoodsInters(List<ShopGoodsInter> shopGoodsInters) {
        this.shopGoodsInters = shopGoodsInters;
    }

    /** 栏目ID */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String tradeName;

    /** 是否显示商品 */
    @Excel(name = "是否显示商品")
    private Integer shopCid;

    /** 栏目图片 **/
    private String tradeImage;

    public String getTradeImage() {
        return tradeImage;
    }

    public void setTradeImage(String tradeImage) {
        this.tradeImage = tradeImage;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTradeName(String tradeName) 
    {
        this.tradeName = tradeName;
    }

    public String getTradeName() 
    {
        return tradeName;
    }
    public void setShopCid(Integer shopCid) 
    {
        this.shopCid = shopCid;
    }

    public Integer getShopCid() 
    {
        return shopCid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tradeName", getTradeName())
            .append("shopCid", getShopCid())
            .append("shopGoodsInters", getShopGoodsInters())
            .append("goodsShopName", getGoodsShopName())
            .append("tradeImage", getTradeImage())
            .toString();
    }
}
